package com.course.domain.service;

import com.course.domain.model.SpecInfo;
import com.course.domain.model.SpecWeek;

import java.util.List;

/**
 * Created by Justin on 2017/5/12.
 */
public interface SpecService {

    SpecInfo createInfo(SpecInfo info);

    SpecInfo updateInfo(SpecInfo info);

    SpecInfo deleteInfo(SpecInfo info);

    List<SpecWeek> createWeek(List<SpecWeek> weeks);

    List<SpecWeek> updateWeek(List<SpecWeek> weeks);

    List<SpecWeek> deleteWeek(List<SpecWeek> weeks);

    SpecInfo loadInfo(int specId);

    List<SpecInfo> listInfo();

    List<SpecInfo> listInfoPublished();

    List<SpecWeek> findWeek(int specId);
}
